rt2x00: avoid introducing a USB dependency in the rt2x00lib module
authorStanislaw Gruszka <sgruszka@redhat.com>
Thu, 2 Feb 2017 09:57:40 +0000 (10:57 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 03:02:52 +0000 (03:02 +0000)
commit5a62a543097cd907d2a0c07507b714957689e285
tree9771ff0d845752ce90d634c6eb950901db4be9f7
parent07aec2d110f4ec2230f660874010afd957d42ffe
rt2x00: avoid introducing a USB dependency in the rt2x00lib module

commit 6232c17438ed01f43665197db5a98a4a4f77ef47 upstream.

As reported by Felix:

Though protected by an ifdef, introducing an usb symbol dependency in
the rt2x00lib module is a major inconvenience for distributions that
package kernel modules split into individual packages.

Get rid of this unnecessary dependency by calling the usb related
function from a more suitable place.

Cc: Vishal Thanki <vishalthanki@gmail.com>
Reported-by: Felix Fietkau <nbd@nbd.name>
Fixes: 8b4c0009313f ("rt2x00usb: Use usb anchor to manage URB")
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/ralink/rt2x00/rt2x00dev.c
drivers/net/wireless/ralink/rt2x00/rt2x00usb.c